package com.xhd.Dao;

import java.sql.SQLException;
import java.util.List;

import com.xhd.vo.Fruits;
import com.xhd.vo.Order;
import com.xhd.vo.Tuijian;
import com.xhd.vo.Yixiang;

public interface SalerDao {
	public boolean loginCheck(String pwd) throws SQLException;//��¼��֤
	public void updatePwd(String pwd) throws SQLException;//�޸�����
	public void addFruit(Fruits fruit) throws SQLException;//添加水果
	public void addOrder(Order order) throws SQLException;//添加订单
	public List<Fruits> haveFruitOrNot(String state) throws SQLException;//返回符合要求状态的水果
	public List<Order> showOrder() throws SQLException;//返回所有订单信息
	public void changeFruitState(String differentState,String fruit_name) throws SQLException;//修改水果状态
	public void changeOrderState(String differentState,String fruit_name,String order_buyer) throws SQLException;//修改订单状态
	public List<Order> showOrderByFruit(String fruit_name) throws SQLException;
	public void addFruitYixiang(Yixiang yixiang) throws SQLException;//添加水果意向
	public List<Yixiang> showYixiang() throws SQLException;//返回所有意向信息
	public List<Fruits> serchFruit(String name) throws SQLException;//显示搜索水果
	public void addTJfruit(Tuijian tuijian) throws SQLException;//添加推荐水果
	public void delTJfruit(String tuijian) throws SQLException;//删除推荐水果
	public List<Tuijian> showTuijian() throws SQLException;//返回所有订单信息
	public List<Tuijian> findby(String str) throws SQLException;//实现模糊搜索
	public String FruitExist(String name) throws SQLException;//判断在推荐中的水果是否上架，若上架则点赞
	public void FruitSoldOut(String fruit_name,String sum,String stock) throws SQLException;
	public boolean haveOrderOrNot(String state) throws SQLException;
}

